//
//  Crate.h
//  SSE
//
//  Created by Matt Roman on 10/11/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "openGLheads.h"
#ifndef MFUNS_H
#define MFUNS_H
#include "Mfuns.h"
#endif



static GLubyte front[4];		// the following are
static GLubyte back[4];			// place holders for 
static GLubyte left[4];			// drawing the obstacles
static GLubyte right[4];
static GLubyte top[4];
const GLvoid * indices[5];

@interface Crate : NSObject {

	float length,width,height;
	Point3f position;
	GLfloat alpha;
	GLfloat color[4];
	GLfloat box[60];
	GLfloat norms[60];
}

- (id)initCrateAlpha:(GLfloat)angle
				   X:(GLfloat)x 
				   Y:(GLfloat)y 
				   Z:(GLfloat)z
				   L:(float)l
				   W:(float)w
				   H:(float)h;
- (void)drawCrate;
- (void)setColorR:(GLfloat)r G:(GLfloat)g B:(GLfloat)b A:(GLfloat)a;
- (Point3f)getPosition;
- (float)getLength;
- (float)getWidth;
- (float)getAlpha;
@end
